<template>
	<view class="content">
		<view class="cnt-top"></view>
		<view class="ctn-login">
			<button class="login-btn" @click="submit(1)">个人登录</button>
			<button class="login-btn" @click="submit(2)">企业登录</button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: 'Hello'
			}
		},
		onLoad() {

		},
		methods: {
			submit(num){
				if(num==1){
					uni.navigateTo({
					    url: '../login/index'
					});
				}else{
					uni.navigateTo({
					    url: '../login/companylogin'
					});
				}
				
			}	
		}
	}
</script>

<style lang="scss" scoped>
	page{
		background: url("../../static/login/shouye.png") no-repeat;
		width: 100%;
		height: 100%;
		background-size:100%
	}
	.cnt-top{
		height: 680upx;
	}
	.ctn-login{
		text-align: center;
		padding-top: 164upx;
		.login-btn{
			width: 533upx;
			height: 88upx;	
			border-radius: 44upx;
			text-align: center;
			font-family: SourceHanSansCN-Medium;
			font-size: 30upx;
			font-weight: normal;
			font-stretch: normal;
			line-height: 88upx;
			letter-spacing: 0px;
			color: #ffffff;
			background-color: #40c201;
		}
		.login-btn:nth-child(2){
			background-color: #5064eb;
			margin-top: 92upx;
		}
	}
	// .content{
	// 	.cnt-top{
	// 		height: 177upx;
	// 		margin-top: 80upx;
	// 		.top-center{
	// 			text-align: center;
	// 			font-family: SourceHanSansCN-Bold;
	// 			font-size: 80upx;
	// 			font-weight: normal;
	// 			font-stretch: normal;
	// 			line-height: 100upx;
	// 			letter-spacing: 0px;
	// 			color: #5064eb;
	// 		}
			
	// 	}
	// }
	
</style>
